/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.domain.items;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Ripper
 */
public class Helmet extends Equipment
{
    public Helmet(String itemName, int itemCost, int looktype, int armorValue, int magicArmorValue, List<ItemAttribute> itemAttributes)
    {
        super(itemName, itemCost, looktype, armorValue, magicArmorValue, itemAttributes);
        
        
    }
    public Helmet(String itemName, int itemCost, int looktype, int armorValue, int magicArmorValue, List<ItemAttribute> itemAttributes,
            EquipmentSetPiece partOfSet)
    {
        super(itemName, itemCost, looktype, armorValue, magicArmorValue, itemAttributes, partOfSet);
        
        
    }
    @Override
    public Item copyItem()
    {
        List<ItemAttribute> attribs = new ArrayList<ItemAttribute>();
        for(ItemAttribute ia: getEquipmentAttributes())
        {
            attribs.add(new ItemAttribute(ia.getAttribute(), ia.getAttributeValue()));
        }
        
        Helmet i = new Helmet(getItemName(), getItemCost(), getLooktype(), getArmorValue(), getMagicArmorValue(), attribs);
        i.setPartOfSet(getPartOfSet());
        return i;
    }
    @Override
    public String getItemType()
    {
        return "helmet";
    }
}
